import numpy as np
import matplotlib.pyplot as plt
y = 2*np.arange(10)
plt.plot(y, color='green', ls='--', linewidth=2) 	# 线宽
plt.title('y=2*x', fontsize=18)
plt.show()
